package com.fishingwithme.infrastructure.mapper;

import com.fishingwithme.infrastructure.dtos.SpotCollectPageDto;
import com.fishingwithme.infrastructure.dtos.SpotPageDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SpotPageMapper extends BaseMapper<SpotCollectPageDto> {
    IPage<SpotPageDto> selectCollectedSpots(Page<SpotPageDto> page,
                                                   @Param("fisherId") Long fisherId,
                                                   @Param("isCollected") Boolean isCollected
    );
    IPage<SpotCollectPageDto> selectCollectedSpotPages(Page<SpotCollectPageDto> page,
                                                   @Param("isCollected") Boolean isCollected,
                                                       @Param("spotId") Long spotId
    );
}
